package net.lzzy.practices.services;

import net.lzzy.practices.constants.Messages;
import net.lzzy.practices.entities.Chapter;

import java.util.List;
import java.util.UUID;

/**
 * @author liaodcc on 2022/5/30 8:35.
 */
public interface ChapterService {
    List<Chapter> getTeachersChapters(UUID courseId,String token);
    List<Chapter> getStudentsChapters(UUID courseId,String token);
    //Chapter getById(UUID courseId);
    Chapter add(UUID id,Chapter chapter,String token);
    Chapter update(UUID teacherId,Chapter chapter,String token);
    Chapter openCloseChapter(UUID id,boolean open,String token);
    Messages remove(UUID id,String token);
}
